package com.eight.cloud.client.common;

import lombok.Getter;

/**
 * @EnumName: PayTypeEnum
 * @Description: 支付方式枚举类
 * @Author: TXC
 * @Date: 2024-12-26 16:26
 **/
@Getter
public enum WechatPaymentMethodEnum {

    /**
     * 微信支付
     */
    NATIVE("native"),
    JSAPI("jsapi"),
    CODEPAY("codepay");

    public final String value;

    WechatPaymentMethodEnum(String value) {
        this.value = value;
    }

    public static WechatPaymentMethodEnum getByValue(String value) {
        for (WechatPaymentMethodEnum method : WechatPaymentMethodEnum.values()) {
            if (method.value.equals(value)) {
                return method;
            }
        }
        return null;
    }
}
